package com.chidopi.member.dao;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.chidopi.market.RootConfig;
import com.chidopi.member.dao.impl.MemberDaoImpl;
import com.chidopi.member.dao.impl.MemberMaintainDaoImpl;

@Configuration("MemberDaoConfig")
@Import(RootConfig.class)
public class DaoConfig {

	@Bean(name="memberDao")
	public IMemberDao memberDao() {
		return new MemberDaoImpl();
	}

	@Bean(name="memberMaintainDao")
	public IMemberMaintainDao memberMaintainDao() {
		return new MemberMaintainDaoImpl();
	}
}
